function intentionCustomBrokerageSet(productId,isEffectCustomDivided){
	$("#productId").val(productId);
	$("#isEffectCustomDivided").val(isEffectCustomDivided);
	$("#approveForm").submit();
}

function bathIntentionCustomBrokerageSet(isEffectCustomDivided){
	var productIdStr = "";
	var list = $("input[id^=bath_][type='checkbox']:checked");
	if(list.length>0){
		for(var int = 0; int < list.length; int++){
			var id = list[int].id.replace("bath_","");
			if(productIdStr==""){
				productIdStr=id;
			}else{
				productIdStr = productIdStr+","+id;
			}	
		}	
	}
	if(productIdStr==""){
		alert("请选择审批项!");
		return;
	}
	$("#productIdStr").val(productIdStr);
	$("#isEffectCustomDivided").val(isEffectCustomDivided);
	$("#approveForm").attr("action", "../../../ruleSet/approval/intentionCustomBrokerageApproval/bathApproval");
	$("#approveForm").submit();
}